package com.gitee.cashzhang27.test.boot.functional.properties;

import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Redisson 云托管模式.
 *
 * @author Cash Zhang
 * @version v1.0 2020/09/17 22:30
 * @since v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = "spring.redis.redisson.replicated")
public class RedissonReplicatedServerProperties extends RedissonBaseMasterSlaveServerProperties {

  /**
   * 节点列表.
   */
  List<String> nodes = new ArrayList<>();

  /**
   * 哨兵扫描间隔，单位：毫秒.
   * 默认值：1秒
   */
  private int scanInterval = 1000;

}
